home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / tctutor2.zip / COMPILER.DOC < prev    next >
Text File  |  1987-08-04  |  5KB  |  113 lines

  1. Coronado Enterprises Turbo C TUTOR                July 1, 1987
  2.  
  3. COMPILER.DOC file
  4.  
  5. This tutorial is written specifically for the Turbo-C compiler
  6. by Borland International.  It is written for the first release
  7. of that particular compiler, and many of the topics discussed
  8. refer to the User's Guide and Reference Guide for that particular
  9. release.  For that reason, when Borland releases a new version,
  10. some of the page numbers may be in error for the new release, but
  11. the topics will still be useable and valid.  It is written to
  12. teach you how to read and write Turbo C programs but even more
  13. important, it is intended to teach you the vocabulary of the C
  14. language so that you can intelligently read the literature about C.
  15.  
  16. Due to the ease of use of the Integrated Environment version of
  17. Turbo C, It will be used exclusively by this tutorial.  You can
  18. use the Command Line version of Turbo C with this tutorial, but
  19. all notes in the tutorial will describe use of the Integrated
  20. Environment version.
  21.  
  22.  
  23.  
  24. ******** Note - Note - Note - Note - Note - Note - Note *********
  25.  
  26. All of the files in the Coronado Enterprises Turbo C tutorial are
  27. designed to work with the Turbo C compiler with all options left
  28. in the default mode (ie - the way the compiler comes from the
  29. factory), and any changes may affect the way some of the example
  30. programs work.  For example, if you were to change the number of
  31. significant characters used for an identifier to 4, the program
  32. named SCOPE.C in chapter 5, would have all 3 functions named the
  33. same, namely "head", and the program would not work.  You would
  34. actually have other problems with this change, but they will not
  35. be commented on here.  Other kinds of errors are also possible, so
  36. it would be best that you simply use the Borland defaults for the
  37. duration of the tutorial and when you have gained experience with
  38. C, customize your compiler to suit your own taste.
  39.  
  40.  
  41.  
  42.  
  43. ****************** Suggested Hard Disk Setup *********************
  44. The Turbo C User's Guide has complete instructions describing
  45. how to set up your system for proper use.  Following the direc-
  46. tions given will result in the following directory setup if you
  47. are using a hard disk.  Some of the files have been omitted in
  48. this suggested setup to reduce the clutter in the TURBOC directory.
  49. This will reduce the confusion over extra files as you work your
  50. way through the tutorials.
  51.  
  52.  
  53.    Turbo C disk 1 - INTEGRATED DEVELOPMENT ENV.
  54.    Turbo C disk 2 - COMMAND LINE/UTILITIES
  55.    Turbo C disk 3 - HEADER FILES/LIBRARIES/EXAMPLES
  56.    Turbo C disk 4 - LIBRARIES/EXAMPLES
  57.  
  58. C:\TURBOC\
  59.     TC.EXE                  /* From Turbo C disk 1              */
  60.     TCCONFIG.TC             /* You make this file - See below   */
  61.     TCHELP.TCH              /* From Turbo C disk 1              */
  62.     *.*                     /* From Turbo C Tutor SOURCE disk   */
  63.  
  64. C:\TURBOC\INCLUDE\
  65.     *.H                     /* From Turbo C disk 3              */
  66.  
  67. C:\TURBOC\INCLUDE\SYS\
  68.     STAT.H                  /* From Turbo C disk 3 \SYS\ subdir.*/
  69.  
  70. C:\TURBOC\LIB\
  71.     *.OBJ                   /* From Turbo C disk 3              */
  72.     *.LIB                   /* From Turbo C disk 3              */
  73.     *.OBJ                   /* From Turbo C disk 4 - optional   */
  74.     *.LIB                   /* From Turbo C disk 4 - optional   */
  75.  
  76. The *.OBJ and *.LIB files from disk 4 are needed only if you wish
  77. to use additional memory models.  You only need the "Small" memory
  78. model to run all of the programs included in the Coronado Enter-
  79. prises Turbo C tutorial.
  80.  
  81. After creating the subdirectories listed above and loading them
  82. with the files listed, change to the TURBOC directory and create
  83. the TCCONFIG.TC file by following these instructions (note that
  84. the instructions are given on page 16 of the Turbo C User's guide
  85. but they are somewhat cryptic for the beginner).
  86.  
  87. 1.   TC<return>                  This loads the TURBO-C compiler
  88. 2.   O                           Selects "Options"
  89. 3.   E                           Selects "Environment"
  90. 4.   I                           Selects "Include directories"
  91. 5.   \TURBOC\INCLUDE<return>     Sets directory for include files
  92. 6.   L                           Selects "Library directory"
  93. 7.   \TURBOC\LIB<return>         Sets directory for library files
  94. 8.   <Esc>                       Returns to "Options" menu
  95. 9.   S                           Selects "Store options"
  96. 10.  <return>                    Stores file named "TCCONFIG.TC"
  97. 11.  <Esc>                       Return to the TURBO-C main menu
  98.  
  99.  
  100.  
  101.  
  102. To run your first program.  (This assumes FIRSTEX.C has been copied
  103. into the \TURBOC\ directory from the tutorial SOURCE disk.)
  104.  
  105. 1.   TC<return>                  Loads the Turbo C compiler
  106. 2.   F                           Selects "Files"
  107. 3.   L                           Selects "Load"
  108. 4.   <return>                    Lists all files *.C
  109. 5.   Position cursor on FIRSTEX.C
  110. 6.   <return>                    Loads FIRSTEX.C
  111. 7.   Alt-R                       Compiles and runs FIRSTEX
  112.  
  113.